package com.yexx.sc.service.organization.controller;

import com.yexx.sc.microsvrapi.domain.City;
import com.yexx.sc.microsvrapi.feign.CityFeign;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/city")
public class CityController {

    @Autowired
    CityFeign cityFeign;

    @GetMapping("/list")
    public List<City> list(){
        List<City> list = cityFeign.list();
        System.out.println(123);
        return list;
    }
}
